package com.kunzai.order.controller;

import com.kunzai.pojp.User;
import com.kunzai.service.Uservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/userRun")
public class UserController {


    @Autowired
    private Uservice uservice;

    /**
     * 根据ID查询用户信息
     */
    @GetMapping("/Userid")
    public User selectUser(@RequestParam Integer UserId ){

       User user =  uservice.selectUser(UserId);

        System.err.println(user);
        return user;
    }

}
